﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///盘点明细
    ///</summary>
    [SugarTable("DBO.t_StocktakingOrderDetail")]
    public partial class t_StocktakingOrderDetail
    {
        public t_StocktakingOrderDetail()
        {


        }
        /// <summary>
        /// Desc:订单明细主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:盘点单Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int OrderId { get; set; }

        /// <summary>
        /// Desc:盘点单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OrderSN { get; set; }

        /// <summary>
        /// Desc:仓位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CellId { get; set; }

        /// <summary>
        /// Desc:仓位编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CellCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CellDepthIndex { get; set; }

        /// <summary>
        /// Desc:垛条码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? PalletBarcode { get; set; }

        /// <summary>
        /// Desc:预期站台
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ExpectedStationIds { get; set; }

        /// <summary>
        /// Desc:状态：0-创建、1-进行中、2-完成、3-已取消
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:是否有货号详情
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public bool? HasSkuDetail { get; set; }

        /// <summary>
        /// Desc:数量
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? QTY { get; set; }

        /// <summary>
        /// Desc:质量状态：0-待检；1-合格；2-不合格；
        /// Default:1
        /// Nullable:True
        /// </summary>           
        public int? QualityState { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:货主Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OwnerId { get; set; }

        /// <summary>
        /// Desc:货主
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OwnerName { get; set; }

        /// <summary>
        /// Desc:有效时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// Desc:生产日期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ProductDate { get; set; }

        /// <summary>
        /// Desc:供应商Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SupplierId { get; set; }

        /// <summary>
        /// Desc:供应商
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SupplierName { get; set; }

        /// <summary>
        /// Desc:物料类型Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaterialTypeId { get; set; }

        /// <summary>
        /// Desc:物料类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialTypeName { get; set; }

        /// <summary>
        /// Desc:当前步骤：0-未执行；1-出进行中；2-出完成；3-入进行中；4-入完成
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? Step { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public bool? IsNeedMove { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? InventoryId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WarehouseId { get; set; }

    }
}
